package orderProcessingProcess.server;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import orderProcessingProcess.exceptions.faults.*;
import orderProcessingProcess.model.Customer;

/**
 *
 * @author dreni
 */
@WebService(targetNamespace = "http://infosys.tuwien.ac.at/ait09/ass1/dto/notification")
public interface NotifyService {

    /**
     *  Methode used to notify Customer
     * @param customer
     * @param msg
     * @return
     */
    @WebMethod(operationName = "notify_customer")
    @WebResult(name = "notify_customer")
    boolean notifyCustomer(
            @WebParam(name = "customer") Customer customer,
            @WebParam(name = "msg") String msg)
            throws UnknownCustomerFault, MessageTooLongFault;
}
